<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.List" %>
<jsp:useBean id="dao" scope="page" class="oneroom.user.zip.zipcode" />
<%
	String zip_code2 = request.getParameter("zip_code2") == null ? "" : request.getParameter("zip_code2");
	String zip_code3 = request.getParameter("zip_code3") == null ? "" : request.getParameter("zip_code3");
	List zipcode3 = dao.getZipcode3(zip_code2);
%>
<select name="zipcode3" id="zipcode3" onchange="javascript:zipCode3();" class="w100">
<%
for(int i = 0; i<zipcode3.size(); i++){ 
	String zipcode3Value = (String)zipcode3.get(i);
%>
<option value="<%=zipcode3Value %>" <%if(zip_code3.equals(zipcode3Value)){out.print("selected='selected'");} %>><%=zipcode3Value %></option>
<%} %>
</select>